$(function() {
			var list = [];
			const htmlContent = document.documentElement.outerHTML;
			// document.documentElement.outerHTML;
			// let url='https://app.zizijy.com/api/createPdf?htmlContent='+htmlContent;
			// 			// let elementIftrame = document.createElement("iframe");
			// 			// elementIF.src = url;
			// 			// elementIF.style.display = "none";
			// 			// document.body.appendChild(elementIftrame);
			// 		// let url='http://10.0.0.103:6767/file/downloadFile'
			// 		console.log(url);
			// 		window.open(url);

			$.ajax({
				url: "https://app.zizijy.com/api/createPdf",
				dataType: "json",
				type: "POST",
				async: '',
				data: {
					htmlContent: htmlContent
				},
				success: function(res) {
					var link = document.createElement("a");
					link.download = 'xxx' //下载文件名称
					link.href = 'https://app.zizijy.com/' + res.data.url +
						'?response-content-type=application/pdf' // 下载地址
					link.style.display = "none"
					link.click()
				},
				error: function(res) {
					console.log(res.responseText, 'sssssmenst');
				}
			});
		});